package com.qkss.service;

import com.github.pagehelper.PageHelper;
import com.qkss.mapper.EbNewsMapper;
import com.qkss.model.EbNews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsService {
    @Autowired
    private EbNewsMapper ebNewsMapper;
    public List<EbNews> list(int page,int pageSize){
        PageHelper.startPage(page,pageSize);
        List<EbNews> ebNews=ebNewsMapper.selectByExample(null);
        return  ebNews;

    }
}
